<?php

namespace App\Services\Manager;


use App\Models\Brand;
use App\Models\Goods;
use App\Models\InventoryLog;
use App\Models\Kind;
use App\Models\ManagerLog;
use App\Models\UserManager;

class LogService
{
    public function addLog($managerId,$shopId,$title,$content,$isLogin=0)
    {
        $manager  = UserManager::where('managerId',$managerId)->first();
        $data['shopId'] = $shopId;
        $data['name'] = $manager['name'];
        $data['phone'] = $manager['phone'];
        $data['title'] = $title;
        $data['content'] = $content;
        $data['isLogin'] = $isLogin;
        $data['createTime']  = date("Y-m-d H:i:s");
        ManagerLog::insert($data);
    }
}